package com.ruoyi.web.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "mes_report_work")
public class ReportWork {
    @TableId
    private String id;

    @Excel(name = "报工单编码")
    @TableField(exist = false)
    private String code;
    /** 生产单编号 */
    @Excel(name = "生产单编码")
    private String produceCode;

    @Excel(name = "员工名称")
    @TableField(exist = false)
    private String userName;
    @Excel(name = "出版号")
    @TableField(exist = false)
    private String pubNo;
    @Excel(name = "车间")
    @TableField(exist = false)
    public String workshopName;
    @Excel(name = "机台")
    @TableField(exist = false)
    private String machineName;
    @Excel(name = "报工日期")
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String reportDate;
    /** 创建人 */
    @Excel(name = "上报人")
    private String createBy;
    /** 品种 */
    @Excel(name = "品种")
    private String breed;
    /** 书刊名称 */
    @Excel(name = "书刊名称")
    private String orderName;
    /** 印张 */
    @Excel(name = "印张")
    private String sheet;
    /** 贴标 */
    @Excel(name = "贴标")
    private String labeling;
    /** 印数 */
    @Excel(name = "印数")
    private BigDecimal printAmount;
    /** 完工数量 */
    @Excel(name = "完成数量")
    private BigDecimal finishNum;
    @Excel(name = "用纸令数")
    @TableField(exist = false)
    private BigDecimal usePaper; //用纸令数
    /** 计件令数 */
    @Excel(name = "计件令数")
    private BigDecimal pieceLing;

    @Excel(name = "计件标准")
    /** 计件标准 */
    private String standard;
    /** 计件金额 */
    @Excel(name = "计件金额")
    private BigDecimal amount;
    /** 印色 */
    @Excel(name = "印色")
    private String printColor;
    /** 换版数量 */
    @Excel(name = "换版数量")
    private BigDecimal exchangeNum;
    /** 计件标准(换版) */
    @Excel(name = "计件标准(换版)")
    private String standardH;
    /** 计件金额(换版) */
    @Excel(name = "计件金额(换版)")
    private BigDecimal amountH;
    /** 预计用纸令数 */
    @Excel(name = "预计用纸令数")
    private BigDecimal expectLing;
    /** 实际用纸令数 */
    @Excel(name = "实际用纸令数")
    private BigDecimal realityLing;
    /** 盈亏令数 */
    @Excel(name = "盈亏令数")
    private BigDecimal ykLing;
    /** 另行加放 */
    @Excel(name = "另行加放")
    private BigDecimal lxjf;
    /** 吨位系数 */
    @Excel(name = "吨位系数")
    private BigDecimal tonnageCoefficient;

    /** 损耗系数 */
    @Excel(name = "损耗比例")
    private BigDecimal lossCoefficient;


    /** 报工单id */
    private String reportId;
    /** 类型 */
    private String type;
    /** 生产单id */
    private String produceId;

    /** 书刊编码 */
    private String bookCode;

    /** 下单日期 */
    private Date orderTime;
    /** 印刷方式 */
    private String printType;



    /** 备注 */
    private String remark;

    /** 创建时间 */
    private Date createTime;
    /** 更新人 */
    private String updateBy;
    /** 更新时间 */
    private Date updateTime;

    /** 贴数id */
    private String pieceId;
    private BigDecimal inventoryNumber;//机台库存数
    /** 纸张id */
    private String paperId;
    /** 来源类型  1生产单， 2纸张 */
    private String fromType;
    /** 纸张名称 */
    private String paperName;
    /** 纸型 */
    private String paperType;
    /** 克重 */
    private BigDecimal weight;
    /** 纸张规格 */
    private String specifications;
    /** 成品尺寸 */
    private String finishSize;
    /** 开本数 */
    private String bookSize;
    /** 装订方式 */
    private String bindingMode;


    /** 组成 */
    private String composition;

    /** 是否质量事故 1 是， null 否 */
    private String accident;
    /** 事故原因 */
    private String reason;


    /** 补助工资 */
    private BigDecimal subsidy;
    /** 是否全部报工 0 否 1 是 */
    private String multipleReport;


    @TableField(exist = false)
    private int intValue;
    /** 累计已上报数量 */
    // @TableField(exist = false)
    private BigDecimal totalNum;

    /** 最大允许上报数量 */
    // @TableField(exist = false)
    private BigDecimal maxNum;

    @TableField(exist = false)
    private int status;





    @TableField(exist = false)
    private String machineId;

    @TableField(exist = false)
    private String headName;
    @TableField(exist = false)
    private String wagesPiece;

    @TableField(exist = false)
    public String paperNo;
    @TableField(exist = false)
    public String paperCode;
    @TableField(exist = false)
    public String realityLingSum;

    @TableField(exist = false)
    public String startDate;

    @TableField(exist = false)
    public String endDate;
    @TableField(exist = false)
    public Integer finishNumSum;


    @TableField(exist = false)
    public String size;
    @TableField(exist = false)
    public String date;


    @TableField(exist = false)
    private BigDecimal usePaperSum;
}
